x =int(input())
s=0
for i in range(0,x+1):
    if i%5==2:
        s=s+1
print(s)